Hi Joel,
> When I use the code given, it compiles and displays fine. But when I
> try replacing \everypar with \EveryPar, it halts during compiling
It looks like \EveryPar is a macro and not a token list.
> These both work great, but do that for the whole document? Is there a
> way
ree line paragraph
Four line paragraph \\
Four line paragraph \\
Four line paragraph \\
Four line paragraph
\samplefile{bryson}
\samplefile{knuth}
\stoptext
An \everypar solution:
\appendtoks%
\vbox to 0pt{%
\dorecurse{3}{%
When I use the code given, it compiles and displays fine. But when I try
replacing \everypar with \EveryPar, it halts during compiling with this
complaint:
"A number should have been here; I inserted '0'. (If you can't figure out why I
needed to see a number, look up 'weird error' in the
Max Chernoff via ntg-context schrieb am 11.10.2022 um 00:57:
Hi Joel,
On Mon, 2022-10-10 at 12:46 +, Joel wrote:
Hello Max,
It is preferred if the solution is just three lines per paragraph,
rather than some content parallel to the text
A Lua callback solution:
[...]
An \everypar
e paragraph
Three line paragraph \\
Three line paragraph \\
Three line paragraph
Four line paragraph \\
Four line paragraph \\
Four line paragraph \\
Four line paragraph
\samplefile{bryson}
\samplefile{knuth}
\stoptext
An \
ple to do with layers/backgrounds + MetaFun.
If you want for there to be exactly three rules per paragraph, then that
is more complicated. I can think of some bad solutions (\everypar, Lua
callbacks), but I'll leave it to someone else to think of a good
solution.
Thank
+ MetaFun.
If you want for there to be exactly three rules per paragraph, then that
is more complicated. I can think of some bad solutions (\everypar, Lua
callbacks), but I'll leave it to someone else to think of a good
solution.
Thank
}}}
And this is the code behind the screenshots:
{\tfx
\everypar{\hangafter=1\hangindent=3em\relax}
Karashima, N.~(1977) {\it Indo nyūmon} = \JA{\tfx インド入門} = {\it
Introducing India}. Tōkyō: Tōkyō Daigaku Shuppankai.
\useURL[url1][https://ci.nii.ac.jp/ncid/BN00345890][][\hyphenatedurl{https
nting[yes, always, big]>> \starttext>> \noindentation>> a>> >> a>> \stoptext>> >> Using LMTX (2020.11.19 11:28), I get indentation with \noindentation.>> >> Could anyone confirm this?> > Yes, something is wrong.> >
indentation with \noindentation.
Could anyone confirm this?
Yes, something is wrong.
begin example
\showgrid
\starttext
\parindent\emwidth
a
\everypar{\setbox\scratchbox\lastbox}
a
\stoptext
end example
Ah, okay. We have normalization enabled now. That means two things:
- instead
this?
Yes, something is wrong.
begin example
\showgrid
\starttext
\parindent\emwidth
a
\everypar{\setbox\scratchbox\lastbox}
a
\stoptext
end example
Wolfgang
___
If your question is of interest
neither of the two start a new paragraph before the
first letter and therefore \the\everypar is still inside a group.
The normal switch to use bold style is \bf and \bold{...} (or {\bold
...}) is only a alternative
switch which uses \bf to change the font. The same applies to
\italic{...}, \mono
f the two start a new paragraph before the
> > first letter and therefore \the\everypar is still inside a group.
> The normal switch to use bold style is \bf and \bold{...} (or {\bold
> ...}) is only a alternative
> switch which uses \bf to change the font. The same applies to
> \i
Henri Menke schrieb am 18.07.2019 um 23:29:
For what it's worth, the MKIV way to switch to bold face is \bold{text}
instead of {\bf text} but it also doesn't fix your problem because
neither of the two start a new paragraph before the first letter and
therefore \the\everypar is still inside
raph, so ConTeXt communicates the current
\parshape settings to the next paragraph using \everypar. However, when
a new paragraph starts in a group, i.e.
blah blah blah ...
{\bf Blah blah} blah ...
TeX inserts the \everypar tokens inside that group because only the
first letter sta
I just tried to import the fontloader from 2019-01-03 into latex,
and get on a simple document the error
(./test-utf8.aux)error:
...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868:
attempt to call upvalue 'getdirection' (a nil value)
.
\newpage ...k \@nobreakfalse \everypar {}\fi
On Sat, 1 Aug 2015 17:35:38 -0600
Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote:
Suppose I want to end the last line of every paragraph with a
command, say, \thinrule, or a string of dots. Is there a
straightforward way to do that? TeX has \everypar but I'm not aware
of dots. Is there a
straightforward way to do that? TeX has \everypar but I'm not aware
of any, say, \endeverypar command.
Hello Idris,
I would think that your only hope in this case would be through the use
of \startparagraph \stopparagraph, for otherwise TeX does not know
where a paragraph
Dear gang,
Suppose I want to end the last line of every paragraph with a command,
say, \thinrule, or a string of dots. Is there a straightforward way to do
that? TeX has \everypar but I'm not aware of any, say, \endeverypar
command.
Best wishes
Idris
--
Idris Samawi Hamid
Professor
:
\define\startHangPar
{\begingroup\EveryPar{\hangafter\plusone\hangindent\emwidth\relax}}
\define\stopHangPar
{\par\endgroup\blank[Afterhangingparagraph]}
Wolfgang
___
If your question is of interest to others as well
\EveryPar{\hangafter\plusone\hangindent\emwidth\relax}}
\define\stopHangPar
{\par\endgroup\blank[Afterhangingparagraph]}
\starttext
\startHangPar
\input knuth
\stopHangPar
\startHangPar
Aanslaan, aanspreken. Een poging in 't werk stellen.
Ik zal dat heertje reis aanslaan. Sla dien broger
}
\definestartstop[HangPar]
[before={\bgroup\appendtoks\Hangindent\to\everypar},
after={\egroup\blank[Afterhangingparagraph]}]
\starttext
\startHangPar
\input knuth
\stopHangPar
\startHangPar
{\bf Aanslaan,} aanspreken. Een poging in 't werk stellen.
Ik zal dat heertje reis
[Afterhangingparagraph][1pc]
\starttext
\def\Hangindent{\hangafter=1\hangindent=1em}
\definestartstop[HangPar]
[before={\bgroup\appendtoks\Hangindent\to\everypar},
after={\egroup\blank[Afterhangingparagraph]}]
\starttext
\startHangPar
\input knuth
\stopHangPar
\startHangPar
Endstring should appear on paragraph ends only (it's acceptable to
appear after headings, too).
How can I achieve the desired result?
Is there maybe something like \EveryPar for the end of paragraphs?
Thanks and kind regards,
Joshua Krämer
}%
\setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}}
\def\SectionBlank#1#2%
{\edef\CurrentSection{#1}%
\executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2:
\let\LastSectionBlankSignal\zeropoint
\EveryPar{\let
}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2:
\let\LastSectionBlankSignal\zeropoint
\EveryPar{\let\LastSectionBlankSignal\zeropoint}
\def\SectionBlankSignal
{\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection
Signal\endcsname\relax}}
% Heading
{the character 1}
\everypar-\page_otr_command_synchronize_side_floats \checkindentation \showparagraphnumber \restoreinterlinepenalty \flushnotes \synchronizenotes \OTRSETshowstatus \flushpostponedbookmark \registerparoptions \flushpostponednodedata \typo_delimited_repeat \insertparagraphintro
by a
paragraph symbol, e.g.:
This is paragraph 1.
This is paragraph 2.
Becomes in the typeset document:
This is paragraph 1. ¶ This is paragraph 2.
Can't you use plain's \everypar?
Not plain, built-in, but it's not the thing. The thing's \let.
\starttext
\let\oldp=\par
\def\par{\P}
In case you
.
This is paragraph 2.
Becomes in the typeset document:
This is paragraph 1. ¶ This is paragraph 2.
?
c
Can't you use plain's \everypar?
___
If your question is of interest to others as well, please add an entry to the
Wiki
...a [#1]\fi \doifelsenothing {#3}
\donefalse \donetrue
\ifdo...
everypar ...eckindentation \showparagraphnumber
\restoreinterlinepenalty \...
to be read again
f
l.5 f
irst numbered paragraph
?
% ~ Patrick Gundlach
\def\hangover{\hangafter=1\hangindent=0.5in}
\definestartstop[workscited][
before={
\page[no]
\indenting[never]
\startalignment[left]
\bibliography{Recommended Reading}
\stopalignment
\setupwhitespace[medium]
\bgroup\appendtoks\hangover\to\everypar
.
\registerparoptions ...gisterparoptions \fi \else
\dodoregisterparoptions
\f...
everypar ...stponedbookmark \registerparoptions
\flushsyncpositions
\flush...
to be read again
\fi \else
\dodoregisterparoptions
\f...
everypar ...stponedbookmark \registerparoptions
\flushsyncpositions
\flush...
to be read again
\hskip
\fixedspace ...malhbox
I confess, I hadn't considered anything quite so bold as reading the whole
of the text into Lua and then processing it back out. I suppose I was
expecting one of the true TeXperts to offer suggestions involving
\appendtoks ... \to \everypar.
I also realized that I forgot to mention that I want
][style={sc}, after={\blank}]
\def\hangover{\hangafter=1\hangindent=1.5pc\raggedright}
\definestartstop[bibliography][
before={
\page[no]
\indenting[never]
\startalignment[left]
\BibTitle{bibliography}
\stopalignment
\bgroup\appendtoks\hangover\to\everypar
},
after
\LastSectionBlankSignal\zeropoint
\EveryPar{\let\LastSectionBlankSignal\zeropoint}
\def\SectionBlankSignal
{\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection
Signal\endcsname\relax}}
% chapter
\DefineSectionBlank [Chapter] [before] {\blank[force,48pt]}
\DefineSectionBlank
Thanks, this works.
Is there also a way to take care of situations where the \index command
appear between two vertical skips, a stupid example is
no, an index inserts something in the stream (after all it has to be
anchored); in such a case you can try \EveryPar{\index{...}} (or use the
delayed
\EveryPar{\index{...}}
this suppress the extra skip but executes the index at each paragraph
till the next
\EveraPAr or the end of the document
(or use the delayed flush at par mechanism)
do you mean \flushatnextpar because this works
Wolfgang
really thought this will be a quickie :]
this is when we get spoiled with all the great features...
\EveryPar{\hangafter=1\hangindent=2em\relax}
\starttext
\subject{Indented text}
\input knuth
\stoptext
I would be careful with such things because it's hard to say if this
will affect other
Schuster
schuster.wolfg...@googlemail.com wrote:
Am 10.03.2009 um 18:14 schrieb Alan Stone:
I still say it's not a very good idea to do this
In order to make an informed decision, what are you refering to Wolfgang
?
Your \EveryPar hackery.
What is it about it that it's a bad idea ?
Who
this
In order to make an informed decision, what are you refering to Wolfgang
?
Your \EveryPar hackery.
What is it about it that it's a bad idea ?
Who knows, it could work or fail in a few cases.
I apologize for my ignorance, I'm still confused with this one (see
attachments)...
Why?
(step 3
L)\relax
\ifnum \parlines = 1
(step 3: P\space \the\parnumber, \the\parlines\space L)%
\fi
\endgroup#1\par}
\def\CountLines{%
\global\parnumber=0
\EveryPar{%
\advance\parnumber by 1
% (step 1: P\space
\ifnum \parlines = 1
(step 3: P\space \the\parnumber, \the\parlines\space L)%
\fi
\endgroup#1\par}
\def\CountLines{%
\global\parnumber=0
\EveryPar{%
\advance\parnumber by 1
% (step 1: P\space\the\parnumber
Am 10.03.2009 um 17:35 schrieb Alan Stone:
On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com
wrote:
I still say it's not a very good idea to do this
In order to make an informed decision, what are you refering to
Wolfgang ?
Your \EveryPar hackery.
I
to make an informed decision, what are you refering to Wolfgang ?
Your \EveryPar hackery.
What is it about it that it's a bad idea ?
I apologize for my ignorance, I'm still confused with this one (see
attachments)...
Why?
code:
\ifnum \parlines = 1
Another idea...
How do you make this line counter work ?
\newcount\parnumber
\newcount\linenumber
\def\myCounters{%
\EveryPar{%
\advance\parnumber by 1
(P\the\parnumber)
\EveryLine{%
% (L\the\prevgraf)}}
\advance\linenumber by 1
(L\the\linenumber
Alan Stone wrote:
Another idea...
How do you make this line counter work ?
\newcount\parnumber
\newcount\linenumber
\def\myCounters{%
\EveryPar{%
\advance\parnumber by 1
(P\the\parnumber)
\EveryLine{%
% (L\the\prevgraf)}}
\advance\linenumber by 1
(L
On Fri, Mar 6, 2009 at 3:05 PM, Hans Hagen pra...@wxs.nl wrote:
[...]
\startlinenumbering
\input tufte
\stoplinenumbering
Ok, my question was a bit ambiguous...
I was not looking to number lines, but to count lines using EveryLine
within EveryPar, aka the paragraph counter \parnumber
script/language
\everypar={\setbox0=\lastbox \beginR \box0 }
not that user friendly, and it would break much other functionality in
context -)
it is not so easy to figure out how to typeset the same thing in mkiv:
for instance the non specialist has to try several fonts which are
installed
\font\Faarsi=Scheherazade:script=arab at 14pt
\Faarsi
% defining a font for Roman languages
\font\romfont=Times Roman at 12pt
\def\rom#1{{\beginL\romfont #1\endL}}
\everypar={\setbox0=\lastbox \beginR \box0 }
\starttext
\rom{goedemorgen Hans}
سلام خالد، درود بر ادریس
\stoptext
\font\Faarsi=Scheherazade:script=arab at 14pt
\Faarsi
% defining a font for Roman languages
\font\romfont=Times Roman at 12pt
\def\rom#1{{\beginL\romfont #1\endL}}
\everypar={\setbox0=\lastbox \beginR \box0 }
\starttext
\rom{goedemorgen Hans}
سلام خالد، درود بر ادریس
\stoptext
, but at this point I have not been able to solve some
problems with the Persian fonts available.
i can look into it if i have samples + fonts + expected output
a few remakrs concerning your test doc:
\everypar={\setbox0=\lastbox \beginR \box0 }
^^ this is dangerous, either do this locally
Steffen Wolfrum wrote:
Hi,
There is no hangover for italics. Please have a look:
\starttext
\def\hangover{\hangafter=1\hangindent=1em}
\definestartstop[hangingarea]
[before={\bgroup\appendtoks\hangover\to\everypar},
after=\egroup]
\starthangingarea
\input tufte
Hi,
There is no hangover for italics. Please have a look:
\starttext
\def\hangover{\hangafter=1\hangindent=1em}
\definestartstop[hangingarea]
[before={\bgroup\appendtoks\hangover\to\everypar},
after=\egroup]
\starthangingarea
\input tufte
{\it italic} text roman test text roman
Steffen Wolfrum wrote:
Hi,
There is no hangover for italics. Please have a look:
This is a typical TeX gotcha. Don't start a paragraph with a group,
because the \everypar will be executed within the group. The problem
is not the italics but the { .
\starttext
\def\hangover{\hangafter
\section{s3}\bookmark{b3}
\bTABLE\bTR\bTD bla\eTD\eTR\eTABLE
this is because there is no everypar applied
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt
Hans Hagen wrote:
That looks good, but why? Does \complexbookmark only work to
overrule a yet-to-come sectioning command?
no, the previous one (bookmarks are flushed in everypar)
in this case the \complete... has a \chapter so the bookmark influences
that one
So what is wrong
-script e-mails?
Hi Steffen,
Indeed you are right. But the point is that when writing a text in
Persian, or rather any RL text, in principle the beginning of the file
is:
\TeXXeTstate=1
\everypar={\setbox0=\lastbox \beginR \box0 }
and therefore the output is different than the one you get
inserted text ...getspacing \spacing \!!plusone
\everypar \emptytoks
\forgetall -\the \everyforgetall
\editsynctracer ...e \else \begingroup \forgetall
\disableeditsync
\ifcase \...
\dosetstrut
with a hack
{\vi\ \setbox0=\hbox{\ }\kern-\wd0}
then \inright outputs the number correctly in a 6pt font
(if I add the hack to \everypar, the inright font is still 14pt)
Question: is there a way to switch to a smaller font directly in \inright{}?
My solution:
\setupoutput[pdftex]
\definepapersize[MYBOOK
the count in the main paragraph font (14pt) until I
prefix every paragraph with a hack
{\vi\ \setbox0=\hbox{\ }\kern-\wd0}
then \inright outputs the number correctly in a 6pt font
(if I add the hack to \everypar, the inright font is still 14pt)
Question: is there a way to switch to a smaller
in a 6pt font
(if I add the hack to \everypar, the inright font is still 14pt)
Question: is there a way to switch to a smaller font directly in
\inright{}?
My solution:
\setupoutput[pdftex]
\definepapersize[MYBOOK][width=10.5cm,height=18.5cm]
\setuppapersize[MYBOOK][letter
effect as \leavevmode definition from plain macro
package. Note however, that
\leavevmode may conflict with \everypar tokens list. No such risk
while using \quitvmode instead
The primitive has been introduced in pdfTEX 1.21a.
\hskip1sp give more the sense of invisible touch ...
--
luigi
what's wrong?
Here is a more robust solution
\everypar{%
\let\normalpar\par%
\let\par\donothing%
\page[yes]%
\let\par\normalpar}
or
\everypar{%
\begingroup
\let\par\donothing%
\page[yes]%
\endgroup}
or
\everypar{%
\bgroup
\let\par\donothing%
\page[yes]%
\egroup}
you loose
On Mon, 23 Apr 2007, Zhichu Chen wrote:
Hi, Aditya
I've made another definition, the output is OK, with some errors. Can you
tell me what's wrong?
Here is a more robust solution
\everypar{%
\let\normalpar\par%
\let\par\donothing%
\page[yes]%
\let\par\normalpar}
or
\everypar{%
\begingroup
Aditya Mahajan wrote:
On Mon, 23 Apr 2007, Zhichu Chen wrote:
Hi, Aditya
I've made another definition, the output is OK, with some errors. Can you
tell me what's wrong?
Here is a more robust solution
\everypar{%
\let\normalpar\par%
\let\par\donothing%
\page[yes]%
\let\par
Hi everybody,
I want to insert some special thing between every paragraph, e.g., I'd like
to make each paragraph on seperated pages. Then I use:
=
\appendtoks\feedcurrentpage\to\everypar
\def\feedcurrentpage{\page[yes]}
=
and ConTeXt
is not emphasised (or bold, slanted ..), it
works as expected.
has to do with grouping and everypar and things triggering indentation ... {\em
everypar here and handling of left floatrs...}
\placefloat[inner]{}{} \dontleavehmode{\bf bla} bla bla
should work (i.e. force tex into hor mode
finally gives the correct output of the original sample.
as said ... side floats hook into everypar, switch output routine etc etc; such
things don't come naturally and for free; maybe some day when we have more
control ...
Hans
][
before={
\page[no]
\indenting[never]
\startalignment[left]
\BibTitle{bibliography}
\stopalignment
\bgroup\appendtoks\hangover\to\everypar
},
after={
\egroup
\indenting[yes]}]
Is there a way to control the degree of the raggedness of the right
margin---other than
\bpoem{%
\\
\begingroup
\everypar={\kern .18\hsize\advance\numberoflines1
\ifodd\numberoflines
\ifnum\numberoflines=\the\stanza
\vskip-\baselineskip\medskip\numberoflines=0\relax\fi%
\else%
\quad\fi}%
\obeylines}
\def\epoem{\everypar={}\par\endgroup\bigskip
-context
In a book being set in plain pdftex I used the following;
\newcount\numberoflines
\newcount\stanza
\stanza=5
\def\bpoem{%
\\
\begingroup
\everypar={\kern .18\hsize\advance\numberoflines1
\ifodd\numberoflines
\ifnum\numberoflines=\the\stanza
\vskip
\doconvertfont\tbltblstyle\empty
\everypar{\tbltblleft\delayedbegstrut}}
\def\eTBLCELL
{\ifhmode
\delayedendstrut
\tbltblright
\par % added 13/4/2006
\else
\par
\ifdim\prevdepth\zeropoint % =-1000pt ?
\vskip-\strutdp
\else
\removebottomthings
\fi
nico wrote:
Yes, strange. Looks like a grouping issue around this in page-flt:
Yes.
It works ok with
\leavevmode {test}.
Also. The problem is the timing of \everypar, what TeX actually
executes is this:
\bgroup
\everypar {\egroup}
\par
{test}
Cheers, Taco
this in page-flt:
\ifmargeblokken % waarschijnlijk gebroken ! ! ! !
\doifinset\v!margin{#2}
{\endgraf
\bgroup\everypar{\egroup\the\everypar}%
\hsize\@@mbwidth}%
\fi
inmargin seems to work, but i don't know if it should do the same thing.
Regards,
BG
don't remember the cases)
think of
{\command ...} rest of par
\command ... rest of par
and possible interferences with special \everypar situations (par starts
in group or with command that itself does something that depends on the
h/v mode)
Hans
}
{\endgraf
\bgroup\everypar{\egroup\the\everypar}%
\hsize\@@mbwidth}%
\fi
\global\insidefloattrue
\begingroup % **
\the\everyinsidefloat
\let\@@extrafloat\empty
\presetmorefloatvariables{#2}%
\dowithnextboxcontent % better a \the\everyfloattoks
{\setlocalfloathsize
?
%{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils subrefs
\resetunexpanded
\setfalse\headlistitem
\setfalse\sublistitem
\setfalse\symbollistitem
\EveryPar{\ignorespaces}% needed ?
\ignorespaces}
% I don't think this is the best way but it will require minimal
% change
\subitemfalse
\symbolitemfalse
\EveryPar{\ignorespaces}%
\ignorespaces}
\protect
\starttext
\input tufte
\defineitemgroup[gbitemize]
\setupitemgroup[gbitemize][each][headstyle=bold]
\startgbitemize
\txt{italian} some italians like this kind of cross||breed between an
itemize and a description
\txt
\egroup}}%
\strut % added 11-08-99
\setfalse\concatnextitem % new, concat
\hskip\itemsignal% new, concat
\getitemparameter\itemlevel\c!command}
\def\defaultitemcommand
{\EveryPar{\ignorespaces}%
\ignorespaces}
\def\doinitializeitemgrouplevel#1%
{\copyparameters
[\??op
\everypar={} after you are done
with the current poem (in the definition of \startnumberedpoem ...
\stopnumberedpoem of course, not manually).
The code attaches some stuff before every paragraph and there's a
macro that checks if the current paragraph number is divisible by
five. It is a macro with square
a poem and restore \everypar={} after you are done
with the current poem (in the definition of \startnumberedpoem ...
\stopnumberedpoem of course, not manually).
The code attaches some stuff before every paragraph and there's a
macro that checks if the current paragraph number is divisible by
five
\subitemfalse
\symbolitemfalse
\EveryPar{\ignorespaces}%
\ignorespaces}
\newconditional\repeatlistitem
\def\checkforrepeatedlistitem
{\ifnum\itemlevel=\plusone \ifnum\itemlevel=\plusone
\initializeboxstack{item}%
\fi \fi
\ifconditional\repeatlistitem
\savebox{item}{\itemlevel}{\hbox
\plusone
% \if#2L\chardef\inlinedirection\plusone\else
% \if#2R\chardef\inlinedirection\plustwo\fi\fi
% \checkinlinedirection} % needed / added
%\appendtoks \checkinlinedirection \to \everypar % see core-ini.tex
\def\checkinlinedirection
{\ifcase\inlinedirection\or\beginL
{\namedlayoutparameter{#1}{lines}}
{\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}}}
\dontcomplain
\EveryPar{\SetLineWidths}
\starttext
\dorecurse{25}{\dorecurse{4}{\input tufte }\par}
\stoptext
no guarantees, no kernel stuff either, maybe some fun module
hans
Hi,
Very quick hack:
\starttext
\def\hangover{\hangafter=1\hangindent=1em }% sorry for the stupid macro name
\definestartstop[hangingarea]
[before={\bgroup\appendtoks\hangover\to\everypar},
after=\egroup]
\starthangingarea
\input tufte
\input tufte
\stophangingarea
\input tufte
\definestartstop[hangingarea]
[before={\bgroup\appendtoks\hangover\to\everypar},
after=\egroup]
\starthangingarea
\input tufte
\input tufte
\stophangingarea
\input tufte
\stoptext
Patrick
___
ntg-context mailing list
\llap{\infofont\backgroundline[black]{\white\editorsynchronization\space\the\inputlineno}\quad}%
\endgroup
\fi}
\appendtoksonce\synchronizeeditor\to\everypar
\protect \endinput
% \starttext
% \dorecurse{100}{\input ward \par} \page
% \stoptext
: if you start a par with a \command,
you may end up with yes/no indentation or some everypar interference
(can for instance be due to the fact that the command can start a
group and aftergroup things can be messed up), your \strut solution is
ok (\indent\ noindent or \dontleavehmode is also ok
89 matches
Mail list logo